package com.xiaoy.core.base.dictionary.entity;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.xiaoy.core.base.util.store.config.ConfigTable;




@Entity
@Table(name=ConfigTable.Dic.DICTIONARY_TABLENAME)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Dictionary extends DicBaseEntity{

	private List<DictionaryValue> values;

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "dic")
	public List<DictionaryValue> getValues() {
		return values;
	}

	public void setValues(List<DictionaryValue> values) {
		this.values = values;
	}
	
}
